<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreatePropTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        //
        Schema::create('prop', function (Blueprint $table) {
            $table->increments('id')->comment('ID');
            $table->unsignedInteger('gid')->default(0)->comment('商品ID');
            $table->string('color')->nullable()->comment('颜色');
            $table->string('size')->nullable()->comment('尺寸');
            $table->string('des')->nullable()->comment('商品描述');
            $table->string('news')->nullable()->comment('商品更多信息');
            $table->string('words')->nullable()->comment('商品评论');
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        //
        Schema::drop('prop');
        
    }
}
